<?php

class AccountTasks extends Model {

	function AccountTasks() {
		parent::Model();
	}

	function create( $account_id, $task_id, $start_date, $end_date, $comment ) {
		$sql = 'insert into `account_tasks`(`account_id`, '
			.'`task_id`, `start_date`, `end_date`, `comment`)'
			.'values(?, ?, ?, ?, ?)';
		$this->db->query( $sql, array($account_id, $task_id, 
			$start_date, $end_date, $comment );
	}

	function fetchActive( $account_id ) {
	
	}

}

?>
